package GUI.Dog;
/**
 * this Window display the Dog card, after searching for that dog.
 * thru that window the user can edit dog details
 */
import java.awt.Color;
import java.awt.ComponentOrientation;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.SwingConstants;
import javax.swing.UIManager;
import javax.swing.border.LineBorder;

import GUI.Course.CourseManage;
import GUI.Report.ReportManage;
import GUI.Test.TestManage;

public class ShowSerach extends JFrame{

	private static final long serialVersionUID = 1L;

	@SuppressWarnings("unused")
	public ShowSerach(final String dogname, final String Gender, final int i, final String Mother, final String Father, final String Picker_exitunit, final String exitreason, final String Recieveunit, final String Picker_coursestart, final String CourseType, final String Comments,final String DateOfBirth) {
    	setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		getContentPane().setLayout(null);
		this.setSize(600, 500);
		setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);
		setTitle("\u05D4\u05E6\u05D2\u05EA \u05DB\u05DC\u05D1");
		getContentPane().setLayout(null);
		
		JButton button_2 = new JButton("\u05E7\u05D5\u05E8\u05E1\u05D9\u05DD");
		button_2.setFont(new Font("David", Font.PLAIN, 14));
		button_2.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				setVisible(false);
				CourseManage coursewindow=new CourseManage();
				coursewindow.setVisible(true);
				
				
				
			}
		});
		button_2.setBounds(431, 178, 111, 23);
		getContentPane().add(button_2);
		
		JButton button_1 = new JButton("\u05DE\u05D1\u05D7\u05E0\u05D9\u05DD");
		button_1.setFont(new Font("David", Font.PLAIN, 14));
		button_1.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				setVisible(false);
				TestManage testwindow=new TestManage();
				testwindow.setVisible(true);
				
			}
		});
		button_1.setBounds(431, 292, 111, 23);
		getContentPane().add(button_1);
		
		JButton button = new JButton("\u05D3\u05D5\u05D7\u05D5\u05EA");
		button.setFont(new Font("David", Font.PLAIN, 14));
		button.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				setVisible(false);
				ReportManage reportwindow=new ReportManage();
				reportwindow.setVisible(true);
			}
		});
		button.setBounds(431, 236, 111, 23);
		getContentPane().add(button);
		
		JButton btnNewButton = new JButton("\u05DE\u05D0\u05D2\u05E8 \u05DB\u05DC\u05D1\u05D9\u05DD");
		btnNewButton.setFont(new Font("David", Font.BOLD, 16));
		btnNewButton.setBackground(UIManager.getColor("Button.background"));
		btnNewButton.setBounds(431, 118, 111, 23);
		getContentPane().add(btnNewButton);
		btnNewButton.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				setVisible(false);
				DogManage dogwindow=new DogManage();
				dogwindow.setVisible(true);
				
			}
		});
	
	
		JPanel panel = new JPanel();
		panel.setToolTipText("\u05D4\u05E6\u05D2\u05EA \u05DB\u05DC\u05D1\r\n" );
		panel.setBorder(new LineBorder(new Color(0, 0, 0), 2));
		panel.setBounds(43, 24, 334, 409);
		getContentPane().add(panel);
		panel.setLayout(null);
		
		JLabel label = new JLabel("\u05E9\u05DD \u05D4\u05DB\u05DC\u05D1:"+   dogname);
		label.setBounds(82, 62, 212, 14);
		label.setFont(new Font("David", Font.PLAIN, 14));
		panel.add(label);
		label.setHorizontalAlignment(SwingConstants.RIGHT);
		

		JLabel label_1 = new JLabel("\u05DE\u05D9\u05DF:"+   Gender);
		label_1.setBounds(-51, 62, 189, 14);
		label_1.setFont(new Font("David", Font.PLAIN, 14));
		panel.add(label_1);
		label_1.setHorizontalAlignment(SwingConstants.RIGHT);

		JLabel label_2 = new JLabel("\u05DE\u05E1\u05E4\u05E8 \u05D4\u05DE\u05DC\u05D8\u05D4:"+   i );
		label_2.setBounds(-48, 123, 189, 21);
		label_2.setFont(new Font("David", Font.PLAIN, 14));
		panel.add(label_2);
		label_2.setHorizontalAlignment(SwingConstants.RIGHT);
		

		JLabel label_3 = new JLabel("\u05D0\u05DD:"+  Mother);
		label_3.setBounds(154, 98, 140, 14);
		label_3.setFont(new Font("David", Font.PLAIN, 14));
		panel.add(label_3);
		label_3.setHorizontalAlignment(SwingConstants.RIGHT);
		
		JLabel label_4 = new JLabel("\u05D0\u05D1:" +  Father);
		label_4.setBounds(-15, 98, 156, 14);
		label_4.setFont(new Font("David", Font.PLAIN, 14));
		panel.add(label_4);
		label_4.setHorizontalAlignment(SwingConstants.RIGHT);
		

		if (Picker_exitunit==null)
		{
		JLabel label_5 = new JLabel("\u05EA\u05D0\u05E8\u05D9\u05DA \u05D4\u05D5\u05E6\u05D0\u05D4 \u05DE\u05D4\u05D9\u05D7\u05D9\u05D3\u05D4:");
		label_5.setBounds(42, 196, 252, 21);
		label_5.setFont(new Font("David", Font.PLAIN, 14));
		panel.add(label_5);
		label_5.setHorizontalAlignment(SwingConstants.RIGHT);
		}
		else
		{
			JLabel label_5 = new JLabel("\u05EA\u05D0\u05E8\u05D9\u05DA \u05D4\u05D5\u05E6\u05D0\u05D4 \u05DE\u05D4\u05D9\u05D7\u05D9\u05D3\u05D4:"+  Picker_exitunit);
			label_5.setBounds(42, 196, 252, 21);
			label_5.setFont(new Font("David", Font.PLAIN, 14));
			panel.add(label_5);
			label_5.setHorizontalAlignment(SwingConstants.RIGHT);
		}
	
		
		if (exitreason==null)
		{
		JLabel label_6 = new JLabel("\u05E1\u05D9\u05D1\u05EA \u05D4\u05D5\u05E6\u05D0\u05D4:");
		label_6.setBounds(42, 214, 252, 21);
		label_6.setFont(new Font("David", Font.PLAIN, 14));
		panel.add(label_6);
		label_6.setHorizontalAlignment(SwingConstants.RIGHT);
		}
		else
		{
			JLabel label_6 = new JLabel("\u05E1\u05D9\u05D1\u05EA \u05D4\u05D5\u05E6\u05D0\u05D4:"+  exitreason);
			label_6.setBounds(42, 214, 252, 21);
			label_6.setFont(new Font("David", Font.PLAIN, 14));
			panel.add(label_6);
			label_6.setHorizontalAlignment(SwingConstants.RIGHT);
		}
		

		if (Recieveunit==null)
		{
		JLabel label_7 = new JLabel("\u05D9\u05D7\u05D9\u05D3\u05D4 \u05E7\u05D5\u05DC\u05D8\u05EA:");
		label_7.setBounds(43, 236, 251, 14);
		label_7.setFont(new Font("David", Font.PLAIN, 14));
		panel.add(label_7);
		label_7.setHorizontalAlignment(SwingConstants.RIGHT);
		}
		else
		{
			JLabel label_7 = new JLabel("\u05D9\u05D7\u05D9\u05D3\u05D4 \u05E7\u05D5\u05DC\u05D8\u05EA:"+   Recieveunit);
			label_7.setBounds(43, 236, 251, 14);
			label_7.setFont(new Font("David", Font.PLAIN, 14));
			panel.add(label_7);
			label_7.setHorizontalAlignment(SwingConstants.RIGHT);
		}
		
		
		if (Picker_coursestart!=null)
		{
		JLabel label_8 = new JLabel("\u05EA\u05D0\u05E8\u05D9\u05DA \u05EA\u05D7\u05D9\u05DC\u05EA \u05E7\u05D5\u05E8\u05E1:"+  Picker_coursestart );
		label_8.setBounds(21, 287, 273, 14);
		label_8.setFont(new Font("David", Font.PLAIN, 14));
		panel.add(label_8);
		label_8.setHorizontalAlignment(SwingConstants.RIGHT);
		}
		else
		{
			JLabel label_8 = new JLabel("\u05EA\u05D0\u05E8\u05D9\u05DA \u05EA\u05D7\u05D9\u05DC\u05EA \u05E7\u05D5\u05E8\u05E1:" );
			label_8.setBounds(21, 287, 273, 14);
			label_8.setFont(new Font("David", Font.PLAIN, 14));
			panel.add(label_8);
			label_8.setHorizontalAlignment(SwingConstants.RIGHT);
		}
		

		if (CourseType==null)
		{
		JLabel label_9 = new JLabel("\u05E1\u05D5\u05D2 \u05E7\u05D5\u05E8\u05E1:" );
		label_9.setBounds(52, 306, 242, 14);
		label_9.setFont(new Font("David", Font.PLAIN, 14));
		panel.add(label_9);
		label_9.setHorizontalAlignment(SwingConstants.RIGHT);
		}
		else
		{
			JLabel label_9 = new JLabel("\u05E1\u05D5\u05D2 \u05E7\u05D5\u05E8\u05E1:"+  CourseType );
			label_9.setBounds(52, 306, 242, 14);
			label_9.setFont(new Font("David", Font.PLAIN, 14));
			panel.add(label_9);
			label_9.setHorizontalAlignment(SwingConstants.RIGHT);
		}

		
		JLabel label_10 = new JLabel("\u05D4\u05E2\u05E8\u05D5\u05EA:"+  Comments);
		label_10.setBounds(52, 341, 242, 14);
		label_10.setFont(new Font("David", Font.PLAIN, 14));
		panel.add(label_10);
		label_10.setHorizontalAlignment(SwingConstants.RIGHT);
		
		JLabel label_11 = new JLabel("\u05DB\u05E8\u05D8\u05D9\u05E1 \u05DB\u05DC\u05D1");
		label_11.setBounds(110, 23, 108, 27);
		label_11.setHorizontalAlignment(SwingConstants.RIGHT);
		label_11.setFont(new Font("David", Font.PLAIN, 16));
		panel.add(label_11);
		
		JButton button_3 = new JButton("\u05E2\u05E8\u05D9\u05DB\u05D4");
		button_3.setFont(new Font("David", Font.PLAIN, 14));
		button_3.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				EditDogCard editDogCard=new EditDogCard(dogname,Gender,i,Mother,  Father,  Picker_exitunit,  exitreason,  Recieveunit,  Picker_coursestart,  CourseType, Comments,DateOfBirth);
				editDogCard.setVisible(true);
				dispose();
			}
		});
		button_3.setBounds(139, 375, 79, 23);
		panel.add(button_3);
		
		JLabel label_12 = new JLabel("\u05EA\u05D0\u05E8\u05D9\u05DA \u05DC\u05D9\u05D3\u05D4:"+ DateOfBirth);
		label_12.setHorizontalAlignment(SwingConstants.RIGHT);
		label_12.setFont(new Font("David", Font.PLAIN, 14));
		label_12.setBounds(42, 123, 252, 21);
		panel.add(label_12);
		
		JLabel label_13 = new JLabel("\u05E4\u05E8\u05D8\u05D9 \u05D4\u05D5\u05E6\u05D0\u05D4 \u05DE\u05D4\u05D9\u05D7\u05D9\u05D3\u05D4:");
		label_13.setHorizontalAlignment(SwingConstants.RIGHT);
		label_13.setFont(new Font("David", Font.PLAIN, 16));
		label_13.setBounds(142, 179, 152, 14);
		panel.add(label_13);
		
		JLabel lblNewLabel = new JLabel("\u05E4\u05E8\u05D8\u05D9 \u05D4\u05E7\u05D5\u05E8\u05E1:");
		lblNewLabel.setHorizontalAlignment(SwingConstants.RIGHT);
		lblNewLabel.setFont(new Font("David", Font.PLAIN, 16));
		lblNewLabel.setBounds(110, 271, 184, 14);
		panel.add(lblNewLabel);
		
		JButton button_4 = new JButton("\u05D9\u05E6\u05D9\u05D0\u05D4 \u05DE\u05D4\u05DE\u05E2\u05E8\u05DB\u05EA");
		button_4.setFont(new Font("David", Font.PLAIN, 14));
		button_4.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				System.exit(0);
			}
		});
		button_4.setBounds(43, 430, 126, 23);
		getContentPane().add(button_4);
		
		ImageIcon ic=new ImageIcon("C:/Project/IDF1/MiscFiles/okets.jpg");
		JLabel lblNewLabel_1 = new JLabel(new ImageIcon("C:/Project/IDF1/MiscFiles/Picture4.jpg"));
		lblNewLabel_1.setBounds(-13, -84, 612, 610);
		getContentPane().add(lblNewLabel_1);
		
		ImageIcon ic1=new ImageIcon("C:/Project/IDF1/MiscFiles/okets.jpg");
		JLabel lblNewLabel_2 = new JLabel(new ImageIcon("C:/Project/IDF1/MiscFiles/Picture4.jpg"));
		lblNewLabel_2.setBounds(0, 0, 334, 421);
		panel.add(lblNewLabel_2);
	
	
	
		
		
		
		
		
	}
	}